package com.zhiche.lisa.oms.dao.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zhiche.lisa.oms.dao.model.Location;
import com.zhiche.lisa.oms.dao.model.bo.LocationBo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 各类地址信息 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
public interface LocationMapper extends BaseMapper<Location> {

    /**
     * 得到所有的地址
     * @return
     */
    List<LocationBo> getAllLoaction();

    Location getDriverLoactionNoTenant(@RequestParam("id") Long id);

    List<Location> selectListNoTenant(@Param("ew") EntityWrapper<Location> locationEntityWrapper);
}
